package com.pulse.base.mapper;

import com.pulse.base.domain.UserTestParam;
import org.apache.ibatis.annotations.Param;

public interface UserTestParamMapper {

    /**
     * 根据设备编号和端口号查询
     * @param deviceNo
     * @param channel
     * @return
     */
    UserTestParam selectUserTestParamByDeviceNoAndChannel(@Param("deviceNo") String deviceNo,
                                                                     @Param("channel") Integer channel);

    /**
     * 新增
     * @param userTestParam
     * @return
     */
    int insertUserTestParam(UserTestParam userTestParam);

    /**
     * 修改
     * @param userTestParam
     * @return
     */
    int updateUserTestParam(UserTestParam userTestParam);

    /**
     * 根据设备id和端口删除
     * @param deviceNo
     * @param channel
     * @return
     */
    int deleteUserTestParamByDeviceNoAndChannel(@Param("deviceNo") String deviceNo,
                                                @Param("channel") Integer channel);

    /**
     * 根据设备编号删除
     * @param deviceNo
     * @return
     */
    int deleteUserTestParamByDeviceNo(String deviceNo);
}
